import { Pipe, PipeTransform } from '@angular/core';
import * as _ from 'lodash';

/**
 * 数组去除重复
 */
@Pipe({ name: 'unique' })
export class UniquePipe implements PipeTransform {
  transform(value, args: string[]): any {
    return _.uniq(value);
  }
}
